function SlideManager(workspace) {
	
	// Methods
	//
	this.addSlide = function(slide) {
		this.slides.push(slide);
		this.currentSlideIndex = this.currentSlideIndex + 1;
		this.showCurrentSlide(this.currentSlideIndex);
	}
	
	this.removeSlide = function(index) {
		this.slides.splice(index, 1);
		
		if(index == this.currentSlideIndex) {
			this.showCurrentSlide(this.currentSlideIndex - 1);
		}
		
		currentSlideIndex--;
	}
	
	this.showCurrentSlide = function(index) {
		var currentSlide = this.slides[index];
		var lastSlide = this.slides[this.currentSlideIndex];
		
		if(index != this.currentSlideIndex)
			workspace.RemoveControl(currentSlide);
		workspace.AddControl(lastSlide);
		
		this.currentSlideIndex = index;
	}
	
	this.addContentToSlide = function(content) {
		var slide = this.slides[this.currentSlideIndex];
		//slide.addContent(content);
	}
	
	this.removeContentFromSlide = function(content) {
		var slide = this.slides[this.currentSlideIndex];
		slide.removeContent(content);
	}
	
	// Fields
	//
	this.currentSlideIndex = -1;
	this.slides = [];
}